#include <iostream>
#include <string>
using namespace std;
string operator * (string& s,int n)
{
    string result;
    for(int i = 0; i<n; i++)
        result = result + s;
    return result;
    
}
string operator - (string s1,string s2)
{
   string result;
   int pos = s1.find(s2);
   if( pos != string::npos)
   {
       string first = s1.substr(0,pos);
       string second = s1.substr(pos+s2.length());
       result = first + second;
   }   
   else 
       result = s1;
    return result;
}
int main()
{
    string s1("123");
    cout<<s1<<endl;
    string s2 = s1 * 3;
    cout<<s2<<endl;
    string s3("hello world!");
    s2 = s3 - "hello";
    cout<<s2<<endl;

}